Skip to content

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Jun 12, 2025

Drop the snapshot scheme in VarState. The previous scheme did leak instantiations from failed subtype comparisons, since a subtype comparison might have several subCaptures tests. If a first subCaptures test succeeds then anything it instantiated is made permanent, even if a subsequent test and the whole subType comparison fails.

The change needed updates in several neg test files where we find that fewer things are instantiated in error messages.

Copy link
Contributor

@bracevac bracevac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@odersky odersky merged commit 0827546 into scala:main Jun 18, 2025
47 of 50 checks passed
@odersky odersky deleted the change-cc-undo branch June 18, 2025 11:37
@WojciechMazur WojciechMazur added this to the 3.7.2 milestone Jun 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants